package com.taobao.api.response;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.hk.clearance.get response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallHkClearanceGetResponse extends TaobaoResponse {

	private static final long serialVersionUID = 8313586141938782951L;

	/** 
	 * 查询结果对象
	 */
	@ApiField("result")
	private CertifyQueryResult result;


	public void setResult(CertifyQueryResult result) {
		this.result = result;
	}
	public CertifyQueryResult getResult( ) {
		return this.result;
	}
	
	/**
 * 清关信息对象
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class ConsigneeCertifyInfo extends TaobaoObject {

	private static final long serialVersionUID = 6192576418882278158L;

	/**
		 * 身份证正面
		 */
		@ApiField("credential1")
		private String credential1;
		/**
		 * 身份证背面
		 */
		@ApiField("credential2")
		private String credential2;
		/**
		 * 有效期截止日期
		 */
		@ApiField("ocr_exp")
		private String ocrExp;
		/**
		 * 身份证号
		 */
		@ApiField("ocr_id")
		private String ocrId;
		/**
		 * 姓名
		 */
		@ApiField("ocr_name")
		private String ocrName;
		/**
		 * 订单号
		 */
		@ApiField("order_id")
		private Long orderId;
		/**
		 * 证件类型
		 */
		@ApiField("type")
		private Long type;
	

	public String getCredential1() {
			return this.credential1;
		}
		public void setCredential1(String credential1) {
			this.credential1 = credential1;
		}
		public String getCredential2() {
			return this.credential2;
		}
		public void setCredential2(String credential2) {
			this.credential2 = credential2;
		}
		public String getOcrExp() {
			return this.ocrExp;
		}
		public void setOcrExp(String ocrExp) {
			this.ocrExp = ocrExp;
		}
		public String getOcrId() {
			return this.ocrId;
		}
		public void setOcrId(String ocrId) {
			this.ocrId = ocrId;
		}
		public String getOcrName() {
			return this.ocrName;
		}
		public void setOcrName(String ocrName) {
			this.ocrName = ocrName;
		}
		public Long getOrderId() {
			return this.orderId;
		}
		public void setOrderId(Long orderId) {
			this.orderId = orderId;
		}
		public Long getType() {
			return this.type;
		}
		public void setType(Long type) {
			this.type = type;
		}

}

	/**
 * 查询结果对象
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class CertifyQueryResult extends TaobaoObject {

	private static final long serialVersionUID = 4519951629356817494L;

	/**
		 * 错误代码
		 */
		@ApiField("err_code")
		private String errCode;
		/**
		 * 错误原因
		 */
		@ApiField("err_msg")
		private String errMsg;
		/**
		 * 清关信息对象
		 */
		@ApiField("module")
		private ConsigneeCertifyInfo module;
		/**
		 * 查询是否成功
		 */
		@ApiField("success")
		private Boolean success;
	

	public String getErrCode() {
			return this.errCode;
		}
		public void setErrCode(String errCode) {
			this.errCode = errCode;
		}
		public String getErrMsg() {
			return this.errMsg;
		}
		public void setErrMsg(String errMsg) {
			this.errMsg = errMsg;
		}
		public ConsigneeCertifyInfo getModule() {
			return this.module;
		}
		public void setModule(ConsigneeCertifyInfo module) {
			this.module = module;
		}
		public Boolean getSuccess() {
			return this.success;
		}
		public void setSuccess(Boolean success) {
			this.success = success;
		}

}



}
